<!DOCTYPE html>
<html lang="zh">
<head>
    <script src="https://unpkg.com/vue@2.5.13/dist/vue.js"></script>
</head>
<body>
<div id="app" >
    <button v-on:click="showsomething">click me!!</button>
</div>
<script>
    var vm = new Vue({
        el:"#app",
        methods : {
            showsomething:function(){
                alert("show something");
            }
        }
    })

</script>
</body>
</html>